<style scoped>
</style>
<!--  -->
<template>
  <div class="operate-category-list dffr">
    <el-button
      type="primary"
      @click="create"
    >创建分类</el-button>
    <el-button
      type="success"
      @click="reset"
    >刷新</el-button>
    <SaveCategory
      ref="createCategory"
      :resetData='resetData'
    />
  </div>
</template>

<script>
import SaveCategory from '@/components/main/user/system/category/common/SaveCategory.vue'
export default {
  props: {
    resetData: {
      type: Function
    },
    system: {
      type: Object
    }
  },
  data () {
    return {
    }
  },
  methods: {
    create () {
      this.$refs['createCategory'].create('创建分类', this.system)
    },
    reset () {
      this.resetData()
    }
  },
  components: {
    SaveCategory
  }
}

</script>
